{template('../public/header.html')}

<!--管理员管理-->
<div class="pad_10">
    <div class="J_tablelist table_list" data-acturi="{:U('admin/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
                <th>{:L('admin_username')}</th>
                <th>{:L('admininrole')}</th>
                <th>{:L('lasttime')}</th>
      			<th>{:L('lastip')}</th>
                <th>{:L('status')}</th>
                <th width=100>{:L('operations_manage')}</th>
            </tr>
            </thead>
    	    <tbody>
            {$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="center">{$rs('id')}</td>
                <td align="center"><span data-tdtype="edit" data-field="username" class="tdedit" data-id="{$rs('id')}">{$rs('username')}</span></td>
                <td align="center"><!-- {:M("admin_role")().Find(rs("role_id")).getField("name")} -->{$rs('role_name')}</td>
                <td align="center">{:stdTime(rs('login_time'))}</td>
                <td align="center">{$rs('login_ip')}</td>
                <td align="center">
                    <img data-tdtype="toggle" data-field="status" data-id="{$rs('id')}" data-value="{$rs('status')}" src="__STATIC__/images/admin/toggle_{if rs('status')=1}enabled{else}disabled{/if}.gif" />
                </td>
                <td align="center">
                    <a href="javascript:;" class="J_showdialog" data-uri="{:U('admin/edit?id='& rs('id') )}" data-title="{:L('edit')} - {$rs('username')}"  data-id="edit" data-width="450" data-height="210">{:L('edit')}</a> | 
                    <a href="javascript:;" class="J_confirmurl" data-uri="{:U('admin/delete?id='& rs('id') )}" data-msg="您确定要删除“<font color=blue>{$rs('username')}</font>”吗？">{:L('delete')}</a>
                </td>
            </tr>
            {/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="8">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
    	   </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
		<label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('admin/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
    	<div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>
</div>

{template('../public/footer.html')}
</body>
</html>